function vec = mat2vec(mat)

mat_Tr = mat';
vec = mat_Tr(:);

end